<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>test</title>
    <link href="./css/app.css" rel="stylesheet" />
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong
      >
    </noscript>
    <div id="app">
      <header class="header">
        <h1>MeetUs - WEB</h1>
      </header>
      <main>
        <div class="meetup-controls">
          <button type="button" id="newMeetup">New Meetup</button>
        </div>
        <section id="meetups"></section>
        <div id="modal-container" class="hide">
          <div class="modal-backdrop"></div>
          <div class="modal">
            <h1>Edit Meetup Data</h1>
            <div class="content">
              <form name="meetup-form">
                <div class="form-control">
                  <label for="title">Title</label>
                  <input name="title" />
                </div>
                <div class="form-control">
                  <label for="subtitle">Subtitle</label>
                  <input name="subtitle" />
                </div>
                <div class="form-control">
                  <label for="address">Address</label>
                  <input name="address" />
                </div>
                <div class="form-control">
                  <label for="imageUrl">Image URL</label>
                  <input name="imageUrl" />
                </div>
                <div class="form-control">
                  <label for="email">E-Mail</label>
                  <input name="email" />
                </div>
                <div class="form-control">
                  <label for="description">Description</label>
                  <textarea name="description"></textarea>
                </div>
              </form>
            </div>
            <footer>
              <button type="button" class="outline" id="cancel">Cancel</button>
              <button type="button" id="submitForm">Save</button>
            </footer>
          </div>
        </div>
      </main>
    </div>

    <!-- 模版 -->
    <div id="templates" class="hide">
      <article>
        <header>
          <h1>{title}</h1>
          <h2>{subtitle}</h2>
          <p>{address}</p>
        </header>
        <div class="image"><img src="{imageUrl}" alt="{title}" /></div>
        <div class="content">
          <p>{description}</p>
        </div>
        <footer>
          <a href="mailto:{contactEmail}">Contact</a>
          <button
            type="button"
            class="outline {favoriteClass}"
            data-for="favorite"
          >
            {favoriteText}
          </button>
          <button type="button">Show Details</button>
        </footer>
      </article>
    </div>
    <script src="./js/app.js"></script>
  </body>
</html>
